package com.widetrust.carpro.dao.basedata;
import java.util.List;

import org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport;

import com.widetrust.carpro.domain.usermanage.AgentBean;
import com.widetrust.carpro.orm.RowMapperForSpringJDBC;
import com.widetrust.config.sqlbeans.Statements;
import com.widetrust.helper.ResourceUtils;
public class InsuranceAgentDao extends SimpleJdbcDaoSupport implements IInsuranceAgentDao {
	
	@SuppressWarnings("unchecked")
	public List< AgentBean> getInsuranceAgentList(){
		Statements statements=ResourceUtils.getStatements();
		String sql = statements.getSQLStatement("getInsuranceAgentList");
		List<AgentBean> list = getJdbcTemplate().query( sql,new RowMapperForSpringJDBC( AgentBean.class ));
		return list;
	}

	

}
